#include <stdio.h>
#include <time.h>

#define SLEPP_TIME 2000

int sleep(time_t time){
    time_t s = clock(), e;

    do {
        if ((e = clock()) == (time_t)-1)
            return 0;

    } while (1000.0 * (e - s) / CLOCKS_PER_SEC < time);

    return 1;
}

void main(void){
    printf("My name is BohYoh.   \r");
    fflush(stdout);
    sleep(SLEPP_TIME);

    printf("How do you do?        \r");
    fflush(stdout);

    sleep(SLEPP_TIME);
    printf("Thanks!               \n");


}
